package com.kun.dto;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.util.List;

@Getter
@Setter
@ToString
@NoArgsConstructor
public class IFormDataDto {

    @NotBlank(message = "任务ID不能为空")
    private String taskId;

    @Valid
    @NotNull(message = "表单数据不能为空")
    @Size(min = 1, message = "表单数据不能为空")
    private List<FormDataDto> formDataDtos;

}
